import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '报销名称',
    align: "center", resizable: true,
    dataIndex: 'reimbursementName'
  },
  {
    title: '提交时间',
    align: "center", resizable: true,
    dataIndex: 'createTime'
  },
  {
    title: '报销金额',
    align: "center", resizable: true,
    dataIndex: 'amount'
  },
  {
    title: '审核状态',
    align: "center", resizable: true,
    dataIndex: 'auditStatus'
  },

  {
    title: '报销类型',
    align: "center", resizable: true,
    dataIndex: 'reimbursementType_dictText'
  },
  {
    title: '申请人',
    align: "center", resizable: true,
    dataIndex: 'userId_dictText'
  },
  {
    title: '审核人',
    align: "center", resizable: true,
    dataIndex: 'auditor_dictText'
  },
  {
    title: '审核时间',
    align: "center", resizable: true,
    dataIndex: 'auditorDate'
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  reimbursementName: {title: '报销名称',order: 1,view: 'text', type: 'string',},
  amount: {title: '报销金额',order: 5,view: 'number', type: 'number',},
  auditStatus: {title: '审核状态',order: 8,view: 'list', type: 'string',dictCode: 'audit_status',},
  auditor: {title: '审核人',order: 9,view: 'text', type: 'string',},
  reimbursementType: {title: '报销类型',order: 12,view: 'list', type: 'string',dictCode: 'reimbursement_type',},
  userId: {title: '申请人',order: 13,view: 'list', type: 'string',dictTable: "sys_user", dictCode: 'username', dictText: 'id',},
  auditorDate: {title: '审核时间',order: 14,view: 'datetime', type: 'string',},
};
